from django.conf import settings
from django.conf.urls import patterns, url
import views

urlpatterns = patterns('',
    url(r'^formulario/$', views.formulario, name='formulario'),
    url(r'^formulario/(?P<pk_informe>\d+)/$', views.formulario, name='formulario'),
    url(r'^vista_informes/(?P<pk_informe>\d+)/$', views.informes, name='informes'),
    
)


if settings.DEBUG:
    urlpatterns += patterns('',
        (r'%s(?P<path>.*)' % settings.MEDIA_URL[1:], 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    )